package com.cian.mapper;

import com.cian.entity.Account;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.stereotype.Component;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Cian
 * @since 2021-02-26
 */
@Mapper
@Component
public interface AccountMapper extends BaseMapper<Account> {
    public Account selectByNameAndPassword(@Param("username") String username, @Param("password") String password);
    public Account selectByName(@Param("username") String username);
    public Integer selectByNameAndLicense(@Param("username") String username, @Param("license") String license);
}
